package com.jifeng.sterilizer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 
 * 
 * @author jifeng
 * @email 1593140625@qq.com
 * @date 2020-08-31 11:53:24
 */
@Data
@TableName("tbl_menu")
public class MenuEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Integer id;
	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * title
	 */
	private String title;
	/**
	 * 菜单路径
	 */
	private String path;
	/**
	 * 父菜单ID
	 */
	private Integer parentId;
	/**
	 * 备注
	 */
	private String memo;
	/**
	 * 有效状态
	 */
	private Integer enabled;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 子分类
	 */
	@TableField(exist = false)
	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	private List<MenuEntity> children;

}
